﻿@using Partner.Surround.Web.Views.Shared.Components.SideBarNav
@using Partner.Surround.Web.Views.Shared.Components.TopBarLanguageSwitch
@using Partner.Surround.Web.Views.Shared.Components.SideBarUserArea
@using Partner.Surround.Web.Startup
@model SideBarUserAreaViewModel
@{
    ViewBag.CurrentPageName = PageNames.Home;
}

<!-- 头部区域 -->
<div class="container">
    <div class="logo">
        <a href="@Url.Action("Index","Home")">Partner.Surround</a>
    </div>
    <div class="left_open">
        <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
    </div>
    <div class="left_refresh">
        <a onclick="xadmin.refresh_tab()" title="刷新">
            <i class="layui-icon layui-icon-refresh-3"></i>
        </a>
    </div>
    <div class="left_skip">
        <a href="@Url.Action("Index","Front")"><i title="跳转到前台" class="iconfont">&#xe718;</i></a>
    </div>
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">@Html.Raw(Model.GetShownLoginName())</a>
            <dl class="layui-nav-child">
                <dd><a onclick="xadmin.add_tab('通知设置','@Url.Action("NotificationSetting","Users")')">通知设置</a></dd>
                <dd><a href="@Url.Action("Logout","Account")">退出</a></dd>
            </dl>
        </li>
    </ul>
</div>

<!-- 侧边菜单 -->
@await Component.InvokeAsync(typeof(SideBarNavViewComponent), new { activeMenu = ViewBag.CurrentPageName })

<!-- 页面标签 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home layui-this" lay-id="d92b36d6fdb0f3d080d31563e5fc6485">
                <i class="iconfont">&#xe6d7;</i>我的桌面
            </li>
        </ul>
        <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
            <dl>
                <dd data-type="this">关闭当前</dd>
                <dd data-type="other">关闭其它</dd>
                <dd data-type="all">关闭全部</dd>
            </dl>
        </div>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='@Url.Action("Console","Home")' tab-id="d92b36d6fdb0f3d080d31563e5fc6485" frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
        <div id="tab_show"></div>
    </div>
</div>

<!-- 主体内容 -->
<div class="page-content-bg"></div>

<style id="theme_style"></style>

@section scripts{
    <script src="~/lib/signalr-client/signalr.min.js" asp-append-version="true"></script>
    <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.signalr-client.js" asp-append-version="true"></script>
    <script type="text/javascript">
        layui.config({
            base: '/lib/layui-extend-modules/' //静态资源所在路径
        }).use(['element'], function () {
            layui.currWindow = function () {
                return $(".layui-tab-item.layui-show").children()[0].contentWindow;
            }
        });
    </script>
}
